function global:make-CalendarEntry(){
<#
.SYNOPSIS
         Creates an entry in an Events list.
 
    .DESCRIPTION
         Creates an entry in the Events list for demonstation purposes.
       
    .EXAMPLE
     Make-CalendarEntry 
     
     .OUTPUTS
         Outputs list item counts to the screen.
 
    .NOTES
         Author: Michael Blumenthal, PSC
#>

	cls
	$site =  get-spsite "http://demo"
	$rweb = $site.RootWeb
    $events = $rweb.Lists["Events"]
	$events.ItemCount
	$item = $events.Items.Add()
	$item["Title"] = "SPFest"
	$item["Location"] = "Rosemont"
	$item["Start Time"] = [datetime] "Oct 7, 2013 8:30am"
	$item["End Time"] = [datetime] "Oct 7, 2013 12pm"
	$item["Description"] = "A full morning of POSH 'n' SharePoint Awesomeness!"
	$item.Update()
	$events.ItemCount
	$events = $site.RootWeb.Lists["Events"]
	$events.ItemCount
	$site.Dispose()
}
get-command make-CalendarEntry